package com.wsm.common.business;

import com.wsm.common.domain.ModelDO;
import com.wsm.common.utils.PageUtils;
import com.wsm.common.utils.Result;

import java.util.List;
import java.util.Map;

/**
 * 系统模板
 *
 * @author wangshimin
 * @email wangshiminhome@foxmail.com
 * @date 2020-02-20 10:21:26
 * @description : 系统模板
 */
public interface ModelBusiness {

    ModelDO get(Long id);

    Result<PageUtils> list(Map<String, Object> params);

    Result save(ModelDO model);

    Result update(ModelDO model);

    Result remove(Long id);

    Result batchRemove(List<Long> ids);

    Result removeOrDel(Long id);

    Result batchRemoveOrDel(Long[] ids);

    Result addOrDel(Long id);

    Result batchAddOrDel(Long[] ids);

    Result removeUseFlag(Long id);

    Result addUseFlag(Long id);

}